package com.yyplatform.admin.platform.config.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * Created on 2024-09-12
 */
@Entity
@Getter
@Setter
@Table(name = "sys_dict_item")
public class SysDictItemEntity extends BaseEntity {

    @Column(name = "dict_id", nullable = false, columnDefinition = "bigint(20) comment '字典ID_FK' ")
    private Long dictId;

    @Column(name = "order_num", nullable = false, columnDefinition = "int(11) comment '排序' ")
    private Integer orderNum;

    @Column(name = "label", nullable = false, columnDefinition = "varchar(255) comment '字典项名称' ")
    private String label;

    @Column(name = "value", nullable = false, columnDefinition = "varchar(255) comment '字典项值' ")
    private String value;

    @Column(name = "type", columnDefinition = "varchar(255) comment '类型' ")
    private String type;

    @Column(name = "css_class_name", columnDefinition = "varchar(255) comment '样式' ")
    private String cssClassName;

    @Column(name = "is_default", nullable = false, columnDefinition = "tinyint(1) comment '是否默认' ")
    private Boolean isDefault;

    @Column(name = "enabled", nullable = false, columnDefinition = "tinyint(1) comment '是否启用' ")
    private Boolean enabled;

    @Column(name = "remark", columnDefinition = "varchar(255) comment '字典描述' ")
    private String remark;


}
